Methods and Software for Detecting Objects in an Image Using Contextual Multiscale Fast Region-Based Convolutional Neural Network

ABSTRACT

Methods of detecting an object in an image using a convolutional neural-network-based architecture that processes multiple feature maps of differing scales from differing convolution layers within a convolutional network to create a regional-proposal bounding box. The bounding box is projected back to the feature maps of the individual convolution layers to obtain a set of regions of interest (ROIs) and a corresponding set of context regions that provide additional context for the ROIs. These ROIs and context regions are processed to create a confidence score representing a confidence that the object detected in the bounding box is the desired object. These processes allow the method to utilize deep features encoded in both the global and the local representation for object regions, allowing the method to robustly deal with challenges in the problem of object detection. Software for executing the disclosed methods within an object-detection system is also disclosed.

RELATED APPLICATION DATA

This application claims the benefit of priority of U.S. ProvisionalPatent Application Ser. No. 62/495,216, filed Sep. 6, 2016, and titled“Very Deep Neural Network with Auto Context R-CNN for Object Detectionand Auto Context R-CNN for Unconstrained Face Detection,” which isincorporated by reference herein in its entirety.

FIELD OF THE INVENTION

The present invention generally relates to the field of detectingobjects in images. In particular, the present invention is directed tomethods and software for detecting objects in images using a contextualmultiscale fast region-based convolutional neural network.

BACKGROUND

Automated detection of objects within digital images is a technologythat has many benefits. For example, automated face detection is usefulin access control, surveillance, and security operations, among others.Automated object-detection technology has progressed significantly ascomputing power has been increased over the years, allowing for fasterand faster execution of complex algorithms. Along with increases inprocessing power has come improvements to object-detection processingarchitectures.

For example, robust face detection in the wild is one of the ultimatecomponents for supporting various facial related problems, such asunconstrained face recognition, facial periocular recognition, faciallandmarking and pose estimation, facial expression recognition, and 3Dfacial model construction, among others. Although the face-detectionproblem has been intensely studied for decades, resulting in variouscommercial applications, it still meets problems in some real-worldscenarios due to numerous challenges, including heavy facial occlusions,extremely low resolutions, strong illumination, exceptional posevariations, image or video compression artifacts, etc.

SUMMARY OF THE DISCLOSURE

In one implementation, the present disclosure is directed to a method ofprocessing an image to detect the presence of one or more objects of adesired classification in the image. The method being performed in anobject-detection system includes receiving the image and storing theimage in computer memory; sequentially convolving the image in a seriesof at least two convolution layers to create a corresponding series offeature maps of differing scales; pooling at least one of the featuremaps to create a corresponding at least one pooled feature map;normalizing, relative to one another, the at least one pooled featuremap and each of the feature maps not pooled to create a series ofnormalized feature maps; concatenating the series of normalized featuremaps together with one another to create a concatenated feature map;dimensionally reducing the concatenated feature map to create adimensionally reduced feature map; processing the dimensionally reducedfeature map in a first set of fully connected layers to create aproposal comprising a bounding box corresponding to a suspected objectof the desired classification in the image and an objectness score forthe suspected object, wherein the first set of fully connected layershas been trained on the desired classification; if the objectness scoreexceeds a predetermined threshold, then projecting the bounding box backto each of the at least two feature maps to identify a region ofinterest in each of the at least two feature maps; identify a contextregion for each region of interest; pooling each of the regions ofinterest to create a corresponding pooled region of interest; poolingeach of the context regions to create a corresponding pooled contextregion; normalizing, relative to one another, the pooled regions ofinterest to create a set of normalized regions of interest; normalizing,relative to one another, the pooled context regions to create a set ofnormalized context regions; concatenating the normalized regions ofinterest with one another to create a concatenated region of interest;concatenating the normalized context regions with one another to createa concatenated context region; dimensionally reducing the concatenatedregion of interest to create a dimensionally reduced region of interest;dimensionally reducing the concatenated context region to create adimensionally reduced context region; processing the dimensionallyreduced region of interest and the dimensionally reduced context regionin a second set of fully connected layers to generate a determinedclassification for the region of interest, wherein the second set offully connected layers is trained on the desired classification; and ifthe determined classification corresponds to the desired classification,then annotating the image with an identification of the bounding box andstoring the image and the identification in the computer memory.

In another implementation, the present disclosure is directed to acomputer-readable storage medium containing computer-executableinstructions for performing a method of processing an image to detectthe presence of one or more objects of a desired classification in theimage. The method for being performed in an object-detection systemexecuting the computer-executable instructions includes receiving theimage and storing the image in computer memory; sequentially convolvingthe image in a series of at least two convolution layers to create acorresponding series of feature maps of differing scales; pooling atleast one of the feature maps to create a corresponding at least onepooled feature map; normalizing, relative to one another, the at leastone pooled feature map and each of the feature maps not pooled to createa series of normalized feature maps; concatenating the series ofnormalized feature maps together with one another to create aconcatenated feature map; dimensionally reducing the concatenatedfeature map to create a dimensionally reduced feature map; processingthe dimensionally reduced feature map in a first set of fully connectedlayers to create a proposal comprising a bounding box corresponding to asuspected object of the desired classification in the image and anobjectness score for the suspected object, wherein the first set offully connected layers has been trained on the desired classification;if the objectness score exceeds a predetermined threshold, thenprojecting the bounding box back to each of the at least two featuremaps to identify a region of interest in each of the at least twofeature maps; identify a context region for each region of interest;pooling each of the regions of interest to create a corresponding pooledregion of interest; pooling each of the context regions to create acorresponding pooled context region; normalizing, relative to oneanother, the pooled regions of interest to create a set of normalizedregions of interest; normalizing, relative to one another, the pooledcontext regions to create a set of normalized context regions;concatenating the normalized regions of interest with one another tocreate a concatenated region of interest; concatenating the normalizedcontext regions with one another to create a concatenated contextregion; dimensionally reducing the concatenated region of interest tocreate a dimensionally reduced region of interest; dimensionallyreducing the concatenated context region to create a dimensionallyreduced context region; processing the dimensionally reduced region ofinterest and the dimensionally reduced context region in a second set offully connected layers to generate a determined classification for theregion of interest, wherein the second set of fully connected layers istrained on the desired classification; and if the determinedclassification corresponds to the desired classification, thenannotating the image with an identification of the bounding box andstoring the image and the identification in the computer memory.

BRIEF DESCRIPTION OF THE DRAWINGS

For the purpose of illustrating the invention, the drawings show aspectsof one or more embodiments of the invention. However, it should beunderstood that the present invention is not limited to the precisearrangements and instrumentalities shown in the drawings, wherein:

FIG. 1 is a set of photographs illustrating usefulness of contextualinformation in determining the confidence of detecting occurrence of anobject in an image;

FIG. 2 is a high-level diagram of an object-detection system inaccordance with aspects of the present invention illustrating an exampleinput image and a corresponding output image;

FIGS. 3A-3C depict a flow diagram of an example method of processing animage to detect within the image an object of a desired classification;

FIG. 4 is a diagram illustrating an architecture of an object-detectionprocess in accordance with the present disclosure;

FIGS. 5A to 5C are graphs of precision versus recall for, respectively,easy, medium, and hard difficulty levels of detection for the testedCMS-RCNN method, Two-stage CNN, Multiscale Cascade CNN, Faceness, andthe Aggregate Channel Features method;

FIG. 6 is a graph of precision versus recall for CMS-RCNN withoutcontext, CMS-RCNN with context, and the Faster R-CNN baseline, showingthat the CMS-RCNN methodology outperforms the baseline by a wide margin;

FIG. 7 is a graph of true positive rate versus false positive rate forthe tested MS-FRCNN method and many other face-detection methods; and

FIG. 8 is a block diagram of a computing system that can contain and/orbe used to implement any one or more of the contextual CMS-RCNNmethodologies disclosed herein.

DETAILED DESCRIPTION I. Overview

In one aspect, the present invention is directed to a ConvolutionalNeural Network (CNN)-based object-detection system capable of detectingoccurrence(s) of one or more desired objects within a given input image.Each object may be virtually any object desired to be detected in theimage, such as a human face, a particular type of vehicle, or aparticular type of weapon, to name just a few. An improvement toobject-detection technology afforded by an object-detection system ofthe present invention is particularly suited for detecting each objecteven if the object occupies a relatively small portion of the overallimage, is poorly or non-uniformly lit, is blurry, and/or is in anoff-axis orientation, among other things that make object detectiondifficult or impossible using traditional object-detectionmethodologies.

In contrast to conventional CNN-based object-detection methods, aCNN-based object-detection method according to the present invention notonly assembles and processes feature maps and regions of interest (ROIs)of multiple scales, but it also considers, at multiple scales, portionsof the image surrounding the ROIs to capture contextual information thathelp increase the confidence that a desired object is present in eachROI. These enhancements to conventional CNN-based object-detectionmethods make the performance of an object-detection method of thepresent invention superior to conventional CNN-based object-detectiontechnology, especially when detecting objects that are relatively smallcompared to the overall image being processed.

This disclosure presents an advanced CNN based approach named ContextualMulti-Scale Region-based CNN (CMS-RCNN) to handle the problem of facedetection in digital face images collected under numerous challengingconditions, such as heavy facial occlusion, illumination, extremeoff-angle, low-resolution, scale difference, etc. Due to face detectionbeing a primary use of CMS-RCNN, the examples and experiments describedherein are focused on human face detection. However those skilled in theart will readily understand how to apply the principles disclosed hereinto virtually any desired type of object.

Generally, a CMS-CNN architecture of the present disclosure allows thenetwork to simultaneously look at multiscale features, as well as toexplicitly look outside facial regions as the potential body regions. Inother words, the process tries to mimic the process of face detection bya human in a sense that when humans are not sure about a face, seeingthe body will increase confidence. Additionally this architecture alsohelps to synchronize both the global semantic features in high levellayers and the localization features in low level layers for facialrepresentation. Therefore, it is able to robustly deal with thechallenges in the problem of unconstrained face detection.

The CMS-CNN method uses the Multiscale Region Proposal Network (MS-RPN)(see U.S. patent application Ser. No. ______, filed on Sep. ______,2017, and titled “METHODS AND SOFTWARE FOR DETECTING OBJECTS IN IMAGESUSING a MULTISCALE FAST REGION-BASED CONVOLUTIONAL NEURAL NETWORK”,which is incorporated herein by reference for its teachings of MS-RPNand MS-FRCNN) to generate a set of region candidates and the CMS-CNN todo inference on the region candidates of facial regions. A confidencescore and bounding box regression are computed for every candidate. Inthe end, the face detection system is able to decide the quality of thedetection results by thresholding these generated confidence scores ingiven face images.

An example instantiation of a CMS-CNN object-detection system isevaluated on two challenging face detection databases and comparedagainst numerous recent face detection methods. Firstly, the proposedCMS-RCNN method is compared against four strong baselines on the WiderFace Dataset, a large scale face detection benchmark database. Thisexperiment showed the method's capability to detect face images in thewild, for example, under occlusions, differing illumination, differingfacial poses, and low-resolution conditions, etc. As discussed below,the method outperformed the baselines by a large margin in all easy,medium, and hard partitions. The method was also benchmarked on the FaceDetection Data Set and Benchmark (FDDB), a dataset of face regionsdesigned for studying the problem of unconstrained face detection. Theexperimental results showed that the CMS-RCNN approach consistentlyachieved highly competitive results against the other state-of-the-artface detection methods.

The following disclosure is organized as follows. Section II summarizesprior work in face detection and reviews a general deep-learningframework, the background, as well as the limitations of the FasterR-CNN in the problem of face detection. Section III introduces anexample CMS-RCNN approach to the problem of robust face detection.Section IV presents experimental face detection results and comparisonsobtained using the disclosed proposed approach on two challenging facedetection databases, i.e., the Wider Face and the FDDB databases.

II. Related Work and its Limitations

Face detection has been a well-studied area of computer vision. One ofthe first well-performing approaches to the problem was the Viola-Jonesface detector. It was capable of performing realtime face detectionusing a cascade of boosted simple Haar classifiers. The concepts ofboosting and using simple features have been the basis for manydifferent approaches since the Viola-Jones face detector. These earlydetectors tended to work well on frontal face images but not very wellon faces in different poses. As time has passed, many of these methodshave been able to deal with off-angle face detection by utilizingmultiple models for the various poses of the face. This increases themodel size but does afford more practical uses of the methods. Someapproaches have moved away from the idea of simple features but continueto use the boosted learning framework. For example, others have usedSURF cascades for general object detection but also showed good resultson face detection.

More recent work on face detection has tended to focus on usingdifferent models such as a Deformable Parts Model (DPM). Some havecombined the problems of face detection, pose estimation, and faciallandmarking into one framework. By utilizing all three aspects in oneframework, those frameworks were able to outperform the state-of-the-artat the time on real world images. Others extended this work byincorporating group sparsity in learning in which landmarks are the mostsalient for face detection as well as incorporating 3D models of thelandmarks in order to deal with pose. Still others have combined ideasfrom both of these approaches by utilizing a cascade detection frameworkwhile simultaneously localizing features on the face for alignment ofthe detectors. Similarly, others have been able to use hierarchical DPMsnot only to achieve good face detection in the presence of occlusion butalso landmark localization. However, others were able to show that bothDPM models and rigid template detectors similar to the Viola-Jonesdetector have a lot of potential that has not been adequately explored.By retraining these models with appropriately controlled training data,they were able to create face detectors that perform similarly to other,more complex state-of-the-art face detectors.

All of these approaches to face detection were based on selecting afeature extractor beforehand. However, there has been work done in usinga ConvNet to learn which features are used to detect faces. Neuralnetworks have been around for a long time but have been experiencing aresurgence in popularity due to hardware improvements and new techniquesresulting in the capability to train these networks on large amounts oftraining data. One group utilized a cascade of CNNs to perform facedetection. The cascading networks allowed them to process differentscales of faces at different levels of the cascade while also allowingfor false positives from previous networks to be removed at later layersin a similar approach to other cascade detectors. Another groupapproached the problem from a different perspective more similar to aDPM approach. In their method, the face is broken into several facialparts such as hair, eyes, nose, mouth, and beard. By training a detectoron each part and combining the score maps intelligently, they were ableto achieve accurate face detection, even under occlusions. Both of thesemethods require training several networks in order to achieve their highaccuracy. The methods of the present disclosure, on the other hand, canbe trained as a single network, end-to-end, allowing for less annotationof training data needed while maintaining highly accurate facedetection.

Ideas for using contextual information in object detection have beenstudied in several recent works with very high detection accuracy. Onegroup reviewed the role of context in contemporary, challengingobject-detection in their empirical evaluation analysis. In theirconclusions, the context information not only reduced the overalldetection errors, but also the remaining errors made by the detectorwere more reasonable. Another group introduced an advanced objectdetector method named Inside-Outside Network (ION) to exploitinformation both inside and outside the region of interest. In theirapproach, the contextual information outside the region of interest wasincorporated using spatial recurrent neural networks. Inside thenetwork, skip pooling was used to extract information at multiple scalesand levels of abstraction. Recently, yet another group presented theMultiPath network with three modifications to the standard Fast RCNNobject detector, namely, provide skip connections that give the detectoraccess to features at multiple network layers, a foveal structure toexploit object context at multiple object resolutions, and an integralloss function and corresponding network adjustment that improvelocalization. The information in their proposed network can flow alongmultiple paths. Their MultiPath network is combined with DeepMask objectproposals to solve the object detection problem.

Unlike all the previous approaches that select a feature extractorbeforehand and incorporate a linear classifier with the depth descriptorbeside RGB channels, a CMS-RCNN method of the present disclosure solvesthe problem under a deep learning framework where the global and thelocal context features, i.e., multiscaling, are synchronized to FasterR-CNNs in order to robustly achieve semantic detection.

Recent studies in deep ConvNets have achieved significant results inobject detection, classification and modeling. In this section, variouswell-known Deep ConvNets are reviewed. Then, current limitations of theFaster R-CNN, one of the state-of-the-art deep ConvNet methods in objectdetection, are examined in the defined context of the face detection.

II.1. Region-Based Convolution Neural Networks

One of the most important approaches for the object detection task isthe family of Region-based Convolution Neural Networks (R-CNN). R-CNN,the first generation of this family, applies the high-capacity deepConvolutional Neural Network (ConvNet) to classify given bottom-upregion proposals. Due to the lack of labeled training data, it adopts astrategy of supervised pre-training for an auxiliary task followed bydomain-specific fine-tuning. Then, the ConvNet is used as a featureextractor, and the system is further trained for object detection withSupport Vector Machines (SVM). Finally, it performs bounding-boxregression. The method achieves high accuracy but is verytime-consuming. The system takes a long time to generate regionproposals, extract features from each image, and store these features ina hard disk, which also takes up a large amount of space. At testingtime, the detection process takes 47 s per image using VGG-16 networkimplemented in GPU due to the slowness of feature extraction. In otherwords, R-CNN is slow because it processes each object proposalindependently without sharing computation.

Fast R-CNN solves this problem by sharing the features betweenproposals. The network is designed to only compute a feature map onceper image in a fully convolutional style, and to use ROI-pooling todynamically sample features from the feature map for each objectproposal. The network also adopts a multi-task loss, i.e. classificationloss and bounding-box regression loss. Based on the two improvements,the framework is trained end-to-end. The processing time for each imagesignificantly reduced to 0.3 s. Fast R-CNN accelerates the detectionnetwork using the ROI-pooling layer. However the region proposal step isdesigned out of the network, and hence still remains a bottleneck, whichresults in a sub-optimal solution and dependence on the external regionproposal methods.

Faster R-CNN addresses the problem with Fast R-CNN by introducing theRPN. An RPN is implemented in a fully convolutional style to predict theobject bounding boxes and the objectness scores. In addition, theanchors are defined with different scales and ratios to achieve thetranslation invariance. The RPN shares the full-image convolutionfeatures with the detection network. Therefore the whole system is ableto complete both proposal generation and detection computation within0.2 s using very deep VGG-16 model. With a smaller ZF model, it canreach the level of real-time processing.

II.2. Limitations of Faster R-CNN

The Region-based CNN family, for example, Faster R-CNN and its variants,achieves the state-of-the-art performance results in object detection onthe PASCAL VOC dataset. These methods can detect objects such asvehicles, animals, people, chairs, and etc. with very high accuracy. Ingeneral, the defined objects often occupy the majority of a given image.However, when these methods are tested on the challenging Microsoft COCOdataset, the performance drops a lot, since images contain more small,occluded and incomplete objects. Similar situations happen in theproblem of face detection. Some instantiations of methods of the presentdisclosure focus on detecting only facial regions that are sometimessmall, heavily occluded and of low resolution.

The detection network in Faster R-CNN is unable to robustly detect suchtiny faces. The intuition point is that the Regions of Interest poolinglayer, i.e. ROI-pooling layer, builds features only from the last singlehigh level feature map. For example, the global stride of the “conv5”layer in the VGG-16 model is 16. Therefore, given a facial region withthe sizes less than 16×16 pixels in an image, the projected ROI-poolingregion for that location will be less than 1 pixel in the “conv5” layer,even if the proposed region is correct. Thus, the detector will havemuch difficulty to predict the object class and the bounding boxlocation based on information from only one pixel.

II.3. Other Face Detection Method Limitations

Other challenges in object detection in the wild include occlusion andlow-resolution. For face detection, it is very common for people to wearitems like sunglasses, scarves, and hats, which occlude faces. In suchcases, the methods that only extract features from faces do not workwell. For example, Faceness considers finding faces through scoringfacial parts responses by their spatial structure and arrangement, whichworks well on clear faces. But when facial parts are missing due toocclusion, facial parts become harder to detect. In these cases, bodycontext information can play its role. As an example ofcontext-dependent objects, faces often come together with the humanbody. Even though the faces are occluded, human viewers can still locateit only by seeing the whole human body. Similar advantages exist forfaces at low-resolution, i.e., tiny faces. The deep features cannot tellmuch about tiny faces, since their receptive field is too small to beinformative. Introducing context information can extend the area toextract features and make them meaningful. On the other hand, thecontext information also helped with reducing false detection asdiscussed previously, since context information tells the differencebetween real faces with bodies and face-like patterns without bodies.

III. Detailed Example of CMS-RCNN

A goal of some embodiments of a CMS-RCNN system of the presentdisclosure is to detect human faces, or, more generally, objects,captured under various challenging conditions such as strongillumination, heavy occlusion, extreme off-angles, and low resolution.Under these conditions, the current CNN-based detection systems sufferfrom two major problems, i.e.: 1) tiny faces are hard to identify, and2) only the face region is taken into consideration for classification.In this section, it is shown why these problems hinder the ability of aface detection system. Then, our proposed network is presented toaddress these problems by using the MS-RPN and the CMS-CNN, asillustrated in FIGS. 3A-C, described below in detail. Similar to FasterR-CNN, the MS-RPN outputs several region candidates, and the CMS-CNNcomputes a confidence score and bounding box for each candidate.

III.1. Identifying Tiny Faces

Why are tiny faces hard to be robustly detected by the previousregion-based CNNs? The reason is that in these networks both theproposed region and the classification score are produced from onesingle high-level convolution feature map. This representation does nothave enough information for the multiple tasks, i.e., region proposaland ROI detection. For example, Faster R-CNN generates region candidatesand does ROI-pooling from the “conv5” layer of the VGG-16 model, whichhas an overall stride of 16. One issue is that the reception field inthis layer is quite large. When the face size is less than 16-by-16pixels, the corresponding output in “conv5” layer is less than 1 pixel,which is insufficient to encode informative features. The other issue isthat as the convolution layers go deeper, each pixel in the feature mapgathers more and more information outside the original input region sothat it contains lower proportion of information for the region ofinterest. These two issues together make the last convolution layer lessrepresentative for tiny faces.

III.1.1 Multiple Scale Faster-RCNN

The present inventors' solution for this problem is a combination ofboth global and local features, i.e. multiple scales. In thisarchitecture, the feature maps are incorporated from lower levelconvolution layers with the last convolution layer for both MS-RPN andCMS-CNN. Features from the lower convolution layer help get moreinformation for the tiny faces, because the stride in the lowerconvolution layer will not be too small. Another benefit is that boththe low-level feature with localization capability and the high-levelfeature with semantic information are fused together, since facedetection needs to localize the face as well as to identify the face. Inthe MS-RPN, the whole lower level feature maps are down-sampled to thesize of the high level feature map and then concatenated with it to forma unified feature map. Then, the dimension of the unified feature mapwas reduced and used to generate region candidates. In the CMS-CNN, theregion proposal is projected into feature maps from multiple convolutionlayers. ROI-pooling is performed in each layer, resulting in afixed-size feature tensor. All feature tensors are normalized,concatenated, and dimension-reduced to a single feature blob, which isforwarded to fully connected layers to compute a representation of theregion candidate.

II.1.2 Normalization

In both MS-RPN and CMS-CNN, concatenation of feature maps is done usingnormalization functions, such as the L2 norm function, because thefeature maps from different layers have generally different propertiesin terms of numbers of channels, scale of value, and norm of feature mappixels. Generally, comparing to values in shallower layers, the valuesin deeper layers are usually too small, which leads to the dominance ofshallower layers. In practice, it is impossible for the system toreadjust and tune the value from each layer for best performance.Therefore, performing normalization, such as L2 normalization, beforeconcatenation is important for the robustness of the system, because itkeeps the value from each layer in roughly the same scale.

In one example, the normalization is performed within each pixel, andeach feature map is treated independently:

$\hat{x} = \frac{x}{{x}_{2}}$${x}_{2} = \left( {\sum\limits_{i = 1}^{d}\; {x_{i}}} \right)^{\frac{1}{2}}$

wherein x and {circumflex over (x)} stand for the original pixel vectorand the normalized pixel vector, respectively, and d stands for thenumber of channels in each feature map tensor.

During training, scaling factors γ_(i) are updated to readjust the scaleof the normalized features. For each channel i, the scaling factorfollows:

y _(i)=γ_(i) {circumflex over (x)} _(i)

wherein γ_(i) stands for the re-scaled feature value.

Following the back-propagation and chain rule, the update for scalingfactor γ is:

$\frac{\partial l}{\partial\hat{x}} = {\frac{\partial l}{\partial y} \cdot \gamma}$$\frac{\partial l}{\partial x} = {{\frac{\partial l}{\partial\hat{x}}\left( {\frac{I}{{x}_{2}} - \frac{{xx}^{T}}{{x}_{2}^{3}}} \right)\frac{\partial l}{\partial\gamma_{i}}} = {\sum\limits_{yi}\; {\frac{\partial l}{\partial y_{i}}{\hat{x}}_{i}}}}$

wherein y=[y₁, y₂, . . . , y_(d)]^(T).

II.1.3 New Layer in Deep Learning Caffe Framework

The system integrates information from lower layer feature maps, here,the third and fourth convolution layers, to extract determinant featuresfor tiny faces. For both parts of an example system, i.e., MS-RPN andCMS-CNN, L2 normalization layers are inserted before concatenation offeature maps and ROIs from the three layers. The features in the featuremaps and ROIs are re-scaled to proper values and concatenated to asingle feature map and a single ROI, respectively. In one example, theinitial scaling factor was set in a special way, following two rules.First, the average scale for each feature map is roughly identical;second, after the following 1×1 convolution, the resulting tensor shouldhave the same average scale as the conv5 layer in the work of FasterR-CNN. As implied, after the following 1×1 convolution, the tensorshould be the same as the original architecture in Faster R-CNN, interms of its size, scale of values and function for the downstreamprocess.

II.2. Integrating Body Context

When humans are searching for faces, they try to look for not only thefacial patterns, e.g., eyes, nose, mouth, but also the human bodies.Sometimes a human body makes us more convinced about the existence of aface. In addition, sometimes a human body helps to reject falsepositives. If we only look at face regions, we may make mistakesidentifying them. For example, FIG. 1 shows two cases where body regionplays a significant role for correct detection. In the two left-handimages, the presence of a body increases the confidence that the objectisolated in the rectangular area in the left image is a face. In the tworight-hand images, the lack of presence of a body decreases theconfidence that the object isolated in the rectangular area in the leftimage is a face. This intuition is not only true for a human but alsovalid in computer vision. Previous research has shown that contextualreasoning is a critical piece of the object recognition puzzle, and thatcontext not only reduces overall detection errors, but, moreimportantly, the remaining errors made by the detector are morereasonable. Based on this intuition, the network of the presentdisclosure is designed to make explicit reference to the human bodycontext information in the ROI detection.

In a network of the present disclosure, the contextual body reasoning isimplemented by explicitly grouping body information from convolutionfeature maps. Specifically, additional ROI-pooling operations areperformed for each region proposal in convolution feature maps torepresent the body context features. Then, same as the face featuretensors, these body feature tensors are normalized, concatenated anddimension-reduced to a single feature blob. In one example, after twofully connected layers, the final body representation is concatenatedwith the face representation. They together contribute to thecomputation of confidence score and bounding box regression.

With projected region proposal as the face region, the additionalROI-pooling region represents the body region and satisfies apre-defined spatial relation with the face region. In order to modelthis spatial relation, we make a simple hypothesis that if there is aface, there must exist a body, and the spatial relation between eachface and body is fixed. This assumption may not be true all the time,but it should cover most of the scenarios since most people we see inthe real world are either standing or sitting. Therefore, the spatialrelation is roughly fixed between the face and the vertical body.Mathematically, this spatial relation can be represented by fourparameters presented in the following equation:

t _(x)=(x _(b) −x _(f))/w _(f)

t _(y)=(y _(b) −y _(f))/h _(f)

t _(w)=log(w _(b) /w _(f))

t _(h)=log(h _(b) /h _(f))

wherein x(*), y(*), w(*), and h(*) denote the two coordinates of the boxcenter, width, and height respectively. And b and f stand for body andface, respectively. t_(x), t_(y), t_(w), and t_(h) are the parameters.Throughout this one example, the parameters are fixed such that the twoprojected ROI regions of face and body satisfies a certain spatial ratioillustrated in the famous Vitruvian Man drawing in FIG. 4 of U.S.Provisional Patent Application Ser. No. 62/495,216, filed Sep. 6, 2016,and titled “Very Deep Neural Network with Auto Context R-CNN for ObjectDetection and Auto Context R-CNN for Unconstrained Face Detection” (“the'216 Provisional Application”), incorporated herein by reference above.

III.3. Information Fusion

It is worth noticing that in an example embodiment of the deep networkarchitecture of the present disclosure there are multiple face featuremaps and body context feature maps for each proposed region. Animportant issue is how to effectively fuse this information, i.e., whatcomputation to apply and in which stage.

Features extracted from differing convolution layers need to be fusedtogether to get a uniform representation. They cannot be naivelyconcatenated due to the overall differences of the numbers of channels,scales of values, and norms of feature map pixels among these layers.The detailed research shows that the deeper layers often contain smallervalues than the shallower layers. Therefore, the larger values willdominate the smaller ones, making the system rely too much on shallowerfeatures rather than a combination of multiple scale features causingthe system to no longer be robust. To address this, in some embodiments,the system takes the multiple scale features and applies L2normalization along the channel axis of each feature map. Then, sincethe channel size is different among layers, the normalized feature mapfrom each layer needed to be re-weighted so that their values are at thesame scale. After that, the feature maps are concatenated to one singlefeature map tensor. This modification helps to stabilize the system andincrease the accuracy. The channel size of the concatenated feature mapis then shrunk to fit right in the original architecture for thedownstream fully-connected layers.

Another crucial question is whether to fuse the face information and thebody information at an early stage or at the very end of the network. Insome embodiments, a late-fusion strategy is used in which face featuresand body context features are extracted in two parallel pipelines. Atthe very end of the network, two representations, one each for the faceand the body context, are concatenated together to form a long featurevector. Then, this feature vector is forwarded to the fully connectedlayers to compute confidence score and bounding box regression. Anotherstrategy is an early fusion strategy in which face feature maps and bodycontext feature maps get concatenated right after ROI pooling andnormalization. These two strategies both combine the information fromface and body context, but late fusion is presently preferred. Thereason is that it is desired that the network make decisions in a moresemantic space; care is desired more about the existence of the face andthe body. The localization information is already encoded in thepredefined spatial relation mentioned in Section III.2., above. Moreoverempirical experiments have shown that late-fusion strategy works better.

III.4. Example Implementation Details

In one example implementation, a CMS-RCNN of the present disclosure wasimplemented in the open-source Caffe deep learning framework. The first5 sets of convolution layers had the same architecture as the deepVGG-16 model, and during training their parameters were initialized fromthe pre-trained VGG-16. For simplicity, the last convolution layers inset 3, 4, and 5 are referred to as “conv3”, “conv4”, and “conv5”,respectively. All the following layers were connected exclusively tothese three layers. In the MS-RPN, we want “conv3”, “conv4”, and “conv5”to be synchronized to the same size so that concatenation can beapplied. So “conv3” is followed by pooling layer to performdown-sampling. Then “conv3”, “conv4”, and “conv5” are normalized alongthe channel axis to a learnable re-weighting scale and concatenatedtogether. To ensure training convergence, the initial re-weighting scaleneeds to be carefully set. Here the initial scales of “conv3”, “conv4”,and “conv5” are set to be 66.84, 94.52, and 94.52, respectively. In theCMS-CNN, the ROI pooling layer already ensured that the pooled featuremaps had the same size. The pooled features were normalized to make surethe downstream values were at reasonable scales when training wasinitialized. Specifically, features pooled from “conv3”, “conv4”, and“conv5” were initialized with scale to be 57.75, 81.67, and 81.67,respectively, for both face and body pipelines. The MS-RPN and theCMS-CNN share the same parameters for all convolution layers so thatcomputation could be done once, resulting in higher efficiency.Additionally, in order to shrink the channel size of the concatenatedfeature map, a 1×1 convolution layer was then employed. Therefore thechannel size of final feature map was at the same size as the originalfifth convolution layer in Faster R-CNN. Details of aspects of thisimplementation are described below in connection with FIG. 4.

Referring again to the drawings, FIG. 2 illustrates an exampleobject-detection system 200 made in accordance with of the presentinvention. At a high level, object-detection system 200 is designed andconfigured to execute an object-detection process 204 based on aconvolutional neural network architecture, an example of which isillustrated in FIG. 4 and described in detail below. Object-detectionsystem 200 is trained to detect each occurrence of one or more objectswithin an input image, here input image 208. For the sake of simplicity,the object(s) that object-detection system 200 detects are of a singledesired classification, such as a human face, a particular type ofvehicle, or a particular type of weapon, among others. In more complexversions, object-detection system 200 may be trained to detect multipleclasses of objects. In the example shown in FIG. 2, input image 208contains at least one occurrence of a single class of objects, heremultiple occurrences 212(1) to 212(4) of a single class of objects (eachdesignated “O” in FIG. 2 in varying sizes and aspect ratios), whereinthe sizes of the occurrences vary from one to another, with occurrence212(4) being relatively small, as indicated by the relative sizes of the“O”s and corresponding bounding boxes 216(1) to 216(4) in an outputversion 208′ of input image 208, which may be augmented with visiblerepresentations of the bounding boxes and/or confidence scores (notshown). It is noted that although bounding boxes 216(1) to 216(4) inthis example are shown as being rectangular in shape, a bounding box inanother embodiment can be any desired shape, such as circular, oval,triangular, pentagonal, trapezoidal, etc.

In the example shown, each occurrence 212(1) to 212(4) of the desiredobject is accompanied by visual context 212(1)C to 212(4)C (eachdesignated by “C” in FIG. 2 in varying sizes and orientations)associated with the corresponding occurrence. For example, if thedesired object is a human face, each visual context 212(1)C to 212(4)Cmay be a corresponding human body. Each visual context 212(1)C to212(4)C is associated with a corresponding context region 220(1) to220(4) in output version 208′ of input image 208. The size of a contextregion, such as context regions 220(1) to 220(4) can vary based on sizeof a suspected occurrence of the desired object. Other desired objectswill have visual contexts pertinent to them, as those skilled in the artwill readily understand. As those skilled in the art will easilyappreciate, input image 208 may be any suitable type of digital image,such as a digital or digitized photographic image, a digital ordigitized frame of a video or film, a digital scanned image, amongothers. It is noted that input image 208 may be a portion of a largerimage that has been selected for object detection a priori.

Referring to FIGS. 3A-3C, and also occasionally to FIG. 2, FIGS. 3A-3Cillustrate an example method 300 of processing an image, such as image208, to detect within the image an occurrence of an object of a desiredclassification. Method 300 may begin at step 305 by an object-detectionsystem, such as object-detection system 200 of FIG. 2, receiving animage, such as image 208, and storing it in computer memory. While acomputing system is not depicted in FIG. 2, those skilled in the artwill readily understand that an object-detection system, such asobject-detection system 200 of FIG. 2, is a combination of 1) softwaresuitably coded to perform at least the functions described herein andany other complementary and supplementary functions needed to create afully functional object-detection system, and 2) hardware designed andconfigured to execute such software. Suitable hardware for executingsuch software is ubiquitous in this day in age, such that a descriptionof even one set of hardware is not needed for those skilled in the artto carry out the present invention. That said, some basic examples ofsuitable hardware include, but are not limited to, a general purposecomputing device (e.g., laptop, desktop, tablet, smartphone, server,mainframe, supercomputer), one or more networks of general purposecomputing devices, an application-specific computing device or networkof such devices, among many others. Such computing devices may eachinclude one or more GPUs to aid in computations, one more centralprocessing units, and/or one or more application-specific processingunits, such as one or more application-specific integrated circuits, oneor more systems on chip, and/or one or more field-programmable gatearrays, among others. Fundamentally, there are no limitations on thesoftware and computing hardware as long as they are compatible and areable to provide the requisite functionality. For the sake ofconvenience, any machine memory needed for providing the requisitefunctionality is referred to herein as “computer memory.” Computermemory includes both non-volatile and volatile memory of any known type.FIG. 8 illustrates one example of a computing system 800 that could formall or part of the computing hardware needed to provide a fullyfunctional object-detection system.

At step 310, the object-detection system sequentially convolves theimage in a series of at least two convolution layers to create acorresponding series of feature maps of differing scales. Generally, theat least two convolution layers are part of a CNN modeled in theobject-detection system. As alluded to above, CNNs are well known in theart and need not be described in detail herein for those skilled in theart to practice the present invention to its fullest scope. It is notedthat while at least two convolutional layers are needed for steps ofmethod 300 that follow, in practice, the more-robust object-detectionsystem of the present invention will typically include more than twoconvolutional layers. In addition, each convolution layer may includemultiple convolution sublayers. As an example, FIG. 4 illustrates anexample architecture 400 for an object-detection process that includesfive convolution layers 404(1) to 404(5), some of which have twoconvolution sublayers and some of which have three convolutionsublayers. Those skilled in the art will readily understand how to builda suitable CNN containing the at least two convolution layers requiredfor step 310, including, but not limited to, selecting convolutionparameters, one or more activation functions, and one or more poolingfunctions, and configuring the fully-connected layer(s) that makedecisions. Those skilled in the art will also readily appreciate that,prior to performing step 310, the at least two convolution layers willhave been a priori trained with appropriate training images.

At step 315, the object-detection system pools at least one of thefeature maps to create a corresponding at least one pooled feature map.The pooling may be any suitable pooling such as max pooling, averagepooling, etc. In some embodiments, each of fewer than all of the atleast two feature maps may be pooled. For example, only the featuremap(s) from the shallowest or shallower convolution layers are pooled.In other embodiments, all of the feature maps selected for normalizationand concatenation (see steps 320 and 325) may be pooled.

At step 320, the object-detection system normalizes, relative to oneanother, each of the at least one pooled feature map and each featuremap not pooled to create a series of normalized feature maps. Generally,normalization ensures that the content(s) of one or more (pooled)feature maps is/are not favored over the content(s) of one or more otherof the (pooled) feature maps. Normalization can be accomplished using asuitable norm function, such as the L2 norm function or the L1 normfunction, among others. At step 325, the object-detection systemconcatenates the series of normalized feature maps to create aconcatenated feature map, and at step 330, the object-detection systemdimensionally reduces the concatenated feature map to create adimensionally reduced feature map. Dimensional reduction at step 330 maybe performed using any suitable dimension reducing technique, such as a1×1 convolution.

At step 335, the object-detection system processes the dimensionallyreduced feature map in a first set of one or more fully connected layersto create a proposal that comprises 1) a bounding box corresponding to asuspected object of the desired classification in the image, and 2) anobjectness score for the suspected object. As those skilled in the artwill readily appreciate, when step 335 is executed, the first set offully connected layers will have been trained on the desiredclassification using known neural network training techniques. It isnoted that the bounding box will typically be rectangular for problemsimplification. However, the shape of the bounding box need not berectangular. The objectness score may represent the relative probabilitythat the suspected object within the bounding box is actually a memberof the desired class. Those skilled in the art will readily understandhow to configure the set of fully connected layers to generate thebounding box and determine the objectness score, as these functions canbe configured similarly to known like functions from conventional RPNs.

It is noted that steps 310 to 335 may be considered to be steps within aMS-RPN, which may be generally similar to conventional RPNs. However,MS-RPN is much more robust than conventional RPNs by virtue of the useof multiple feature maps of differing scale and the attendantnormalization and concatenation.

At step 340, the object-detection system determines whether or not theobjectness score exceeds a predetermined threshold. The predeterminedthreshold may be a learned value from training. If at step 340 theobjectness score does not exceed the threshold, at step 345 theobject-detection system may provide an indication that it has not foundany objects of the desired classification within the image. Suchindication may be of any suitable type, such as a message displayed to auser on an electronic display, a flag sent to another softwareapplication, or marking on the image, among many other possibilities.However, if at step 340 the objectness SCORE exceeds the predeterminedthreshold, at step 350 the object-detection system projects the boundingbox back to each of the at least two feature maps of differing scale toidentify an ROI in each of the at least two feature maps. At step 350,the object-detection system also identifies a corresponding contextregion for each bounding box.

At step 355, the object-detection system pools each of the ROIs tocreate a corresponding pooled ROI and each of the corresponding contextregions to create a corresponding pooled context region. The pooling maybe any suitable pooling such as max pooling, average pooling, etc. Atstep 360, the object-detection system normalizes, relative to oneanother, the pooled ROIs to create a set of normalized ROIs andnormalized, relative to one another, the pooled context regions tocreate a set of normalized context regions. Generally, normalizationensures that the content of any of the pooled ROIs and context regionsis not favored over the content of any other of the pooled ROIs andcontext regions. Normalization can be accomplished using a suitable normfunction, such as the L2 norm function or the L1 norm function, amongothers. At step 365, the object-detection system concatenates the seriesof normalized ROIs to create a concatenated ROI and concatenates theseries of normalized context regions to create a concatenated contextregion, and at step 370, the object-detection system dimensionallyreduces the concatenated ROI to create a dimensionally reduced ROI anddimensionally reduces the concatenated context region to create adimensionally reduced context region. Dimensional reduction at step 370may be performed using any suitable dimension reducing technique, suchas a 1×1 convolution.

At step 375, the object-detection system processes the dimensionallyreduced ROI and the dimensionally reduced context region in a second setof fully connected layers to generate and determine a confidence scorefor the ROI. As those skilled in the art will readily appreciate, whenthe object-detection system executes step 375, the second set of fullyconnected layers will have been trained on the desired classificationusing known neural network training techniques. Any suitable classifier,such as a softmax classifier, can be used for determining the confidencescore for the presence of an object of the desired classification.

At step 380, the object-detection system may store the bounding box andcorresponding confidence score in memory in association with the inputimage. This information may be stored in any one or more of a variety ofways, such as metadata for the image and/or, as illustrated at step 385,the object-detection system may annotate the image with a visualdepiction of the bounding box and the corresponding confidence score andstore the image and the annotations in the computer memory. Theobject-detection system may perform other operations at step 380, suchas displaying a message to a user on a visual display, issue a flag,and/or display the image annotated with the bounding box to the user,among other things.

It is noted that steps 355 to 375 may be considered to be steps within aCMS-RCNN, which may be generally similar to conventional Faster RCNNs.However, CMS-RCNN is much more robust than conventional Faster RCNNs byvirtue of the use of multiple ROIs and context regions of differingscale, the attendant normalization and concatenation, and the use ofboth multiple ROIs and multiple context regions in determining aconfidence score. In addition, it is noted that the at least twoconvolution layers mentioned above will typically be shared between theMS-RPN and CMS-RCNN. Alternatively, the at least two convolution layersmay be dedicated only to the MS-RPN, with a corresponding at least twoseparate and distinct convolution layer of the same scales beingdedicated to the CMS-RCNN. It is further noted that while method 300 isdirected to detecting objects of only one classification, those skilledin the art will readily understand how to modify the method to detectmultiple classifications of objects. Similarly, while method 300 isdescribed above as only detecting a single occurrence of an object ofthe desired classification or no such occurrence, the method can detectmultiple occurrences of the desired classification within the image, ifthe image contains such multiple occurrences, or at least appears to theobject-detection system to contain such multiple occurrences.

As mentioned above, FIG. 4 illustrates an example CNN-based architecture400 for an object-detection system of the present invention. It is notedthat architecture 400 is not complete, as only salient features andaspects are illustrated for simplicity. Those skilled in the art willreadily be able to augment architecture 400 as needed to implement afully functional object-detection system that functions in accordancewith the present disclosure. For example, those skilled in the art willreadily understand how to implement an input layer, activation layers(e.g., rectified linear unit (ReLU) layers), pooling layers, fullyconnected neural network layers, one or more output layers, etc.), asthose features are well known in the art of neural networks generallyand visual-learning neural networks more specifically. In this vein andas noted above, those skilled in the art will readily understand how tobuild a suitable object-detection system based on architecture,including, but not limited to, selecting convolution parameters,selecting one or more activation functions, selecting one or morepooling functions, and configuring the fully-connected layer(s) thatmake decisions. Those skilled in the art will also readily understandthe processes for training a CNN-based object-detection system of thepresent invention.

In this example, architecture 400 includes a CNN 404 that is sharedbetween an MS-RPN 408 and a CMS-RCNN 412. In this example, CNN 404includes five groups of convolution layers 404(1) to 404(5), with eachof the layer group 404(1) and 404(2) including two convolution layers404(1)s 1, 404(1)s 2 and 404(2)s 1, 404(2)s 2, respectively, and each ofthe layer groups 404(3) to 404(5) including three convolution layers404(3)s 1, 404(3)s 2, 404(3)s 3, and 404(4)s 1, 404(4)s 2, 404(4)s 3 and404(5)s 1, 404(5)s 2, 404(5)s 3, respectively. Convolution layers404(3)s 3, 404(4)s 3, and 404(5)s 3 produce a corresponding set offeature maps 416(1) to 416(3) of sequentially reducing scale.

In this example, MS-RPN 408 is configured to pool feature maps 416(1)and 416(2) of shallower convolution layers 404(3) and 404(4) using asuitable pooling function, whereas the MS-RPN does not pool feature map416(3) from deeper convolution layer 404(5). This is so in this examplebecause feature maps 416(1) and 416(2) are downscaled such that theyhave the same spatial resolution as feature map 416(3). However, inother embodiments, more or fewer of feature maps 416(1) to 416(3) may bepooled as desired in a particular design. Pooled feature maps (notshown) and feature map 416(3) are normalized relative to one another tocreate normalized feature maps 420(1) to 420(3). As noted above relativeto method 300, any suitable pooling function, such as max pooling, andany suitable norm function, such as an L2 norm function, can be used.The normalized feature maps 420(1) to 420(3) are concatenated with oneanother to form a concatenated feature map 424, which is thendimensionally reduced, for example, using a 1×1 convolution 428, toobtain a dimensionally reduced feature map 432. In this example,dimensionally reduced feature map 432 is then processed to extractfeatures from a 3×3 local region, here using a suitable 3×3 kernel, tohighlight features present in dimensionally reduced feature map topropose a feature vector 436 for each spatial location in feature map432. Highlighted feature vector 436 is then processed by fully connectedlayers (not shown) to determine one or more bounding boxes (only onebounding box 440 shown), each of which is suspected to contain anoccurrence of an object agnostic to class (e.g., human face, chair,vehicle, weapon, etc.). The fully connected layers also determine anobjectness score 444 for each bounding box 440 they have identified.

Each bounding box, here just bounding box 440, suspected of containingan occurrence of the desired class, is then projected back to each offeature maps 416(1) to 416(3) on convolution layers 404(3) to 404(5)used to create highlighted feature map 436. This back-projecting is usedto isolate a corresponding ROI 448(1) to 448(3) in each of feature maps416(1) to 416(3) and also to identify a corresponding context region448(1)C to 448(3)C in each of these feature maps. Based on bounding box440, each of these ROIs 448(1) to 448(3) is suspected to contain anoccurrence of an object of the desired class, and each of contextregions 448(1)C to 448(3)C may contain visual context associated withthe desired class of object to be detected. ROIs 448(1) to 448(3) arepooled to create pooled ROIs 452(1) to 452(3), which are then normalizedto create normalized ROIs 456(1) to 456(3). Context regions 448(1)C to448(3)C are also pooled to create pooled context regions 452(1)C to452(3)C, which are then normalized to create normalized context regions456(1)C to 456(3)C. Any suitable pooling and normalization functions canbe used, such as max pooling and L2 normalization, among others.Normalized ROIs 456(1) to 456(3) are concatenated with one another toform a concatenated ROI 460, which is then dimensionally reduced, forexample, using a 1×1 convolution 464, to obtain a dimensionally reducedROI 468. Similarly, normalized context regions 456(1)C to 456(3)C areconcatenated with one another to form a concatenated context region460C, which is then dimensionally reduced, for example, using a 1×1convolution 464C, to obtain a dimensionally reduced context region 468C.

In this example, dimensionally reduced ROI feature map 468 anddimensionally reduced context feature map 468C are then processed byfully connected layers 472 (also indicated by “fc”) to determine aconfidence score 476 for the suspected occurrence of the object in theROI. The fully connected layers may also determine a bounding box 480based on the fully connected layer processing of dimensionally reducedROI feature map 468 and dimensionally reduced context feature map 468C.

IV. Experimental Results

This section presents the face detection benchmarking using aninstantiation of a CMS-RCNN object-detection system of the presentdisclosure on the Wider Face dataset and the Face Detection Data Set andBenchmark (FDDB) database. The Wider Face dataset is experimented withhigh degree of variability. Using this database, the tested systemrobustly outperformed strong baseline methods, including Two-stage CNN,Multi-scale Cascade CNN, Faceness, and ACF, by a large margin. Theexperiments show that the attendant model trained on a Wider Facedataset generalized well enough to the FDDB database. The trained modelconsistently achieved competitive results against the recentstate-of-the-art face detection methods on this database, includingHyperFace, DP2MFD, CCF, Faceness, NPDFace, MultiresHPM, DDFD,CascadeCNN, ACF-multiscale, Pico, HeadHunter, Joint Cascade, BoostedExemplar, and PEP-Adapt.

IV.1. Experiments on Wider Face Dataset

IV.1.1. Data description

Wider Face is a public face detection benchmark dataset. It contains393,703 labeled human faces from 32,203 images collected based on 61event classes from the Internet. The database has many human faces witha high degree of pose variation, large occlusions, low-resolutions, andstrong lighting conditions. The images in this database are organizedand split into three subsets, namely, training, validation, and testing.Each contains 40%, 10%, and 50%, respectively, of the originaldatabases. The images and the ground-truth labels of the training andthe validation sets are available online for experiments. However, inthe testing set, only the testing images (not the ground-truth labels)are available online. All detection results are sent to the databaseserver for evaluating and receiving the Precision-Recall (PR) curves.

In the testing, the CMS-RCNN object-detection system was trained on thetraining set of the Wider Face dataset containing 159,424 annotatedfaces collected in 12,880 images. The trained model on this database wasused in testing of all databases.

IV.1.2. Testing and Comparison

During the testing phase, the face images in the testing set weredivided into three parts based on their detection rates on EdgeBox. Inother words, face images were divided into three levels according to thedifficulties of the detection, i.e., Easy, Medium, and Hard. The presentCMS-RCNN model was compared against recent strong face detected methods,namely, Two-stage CNN, Multiscale Cascade CNN, Faceness, and AFC. All ofthese methods are trained on the same training set and tested on thesame testing set.

The PR curves and Average Precision (AP) values are shown in FIGS.5A-5C. The present object-detection system outperformed those strongbaselines by a large margin. It achieved the best average precision inall level faces, i.e., AP=0.902 (Easy), 0.874 (Medium), and 0.642(Hard), and outperforms the second best baseline by 26.0% (Easy), 37.4%(Medium) and 60.8% (Hard). These results suggest that as the difficultylevel goes up, CMS-RCNN can detect challenging faces better. So, it hasthe ability to handle difficult conditions, hence is more close to humandetection levels. FIG. 8 of the '216 Provisional Application shows someexamples of face-detection results using a CMS-RCNN method of thepresent disclosure on this database.

IV.1.3. With Context Vs. Without Context

As shown in Section III.2, human vision can benefit from additionalcontextual information for better detection and recognition. In thissection, it is shown how explicit contextual reasoning in the networkcan help improve the model performance.

To prove this, the model was tested with and without body contextinformation on the validation of the Wider Face dataset. The modelwithout body context was implemented by removing the context pipelineand only used the representation from the face pipeline to compute theconfidence score and the bounding box regression. A comparison ofperformance is illustrated in FIG. 6. The Faster R-CNN method was set asa baseline.

Starting from 0 in Recall, two curves of the present models wereoverlapped at first, which means that the two models performed as wellas each other on some easy faces. Then the curve of the model withoutcontext starts to drop quicker than the model having context, suggestingthat the model having context can handle the challenging conditionsbetter when faces become more and more difficult. Thus, eventually themodel having context achieved a higher recall value. Additionally, thecontext model produces a longer PR curve, which means that contextualreasoning can help find more faces.

IV.1.4. Visualization of False Positives

As it is well known that PR curves get dropped due to false positives,there is interest in the false positives produced by the tested CMS-RCNNmodel. For example, what type of object can fool the model into treatingit as a face, and is the fooling due to over-fitting, data bias, ormislabeling?

In order to visualize the false positives, the CMS-RCNN model was testedon the Wider Face validation set and all of the false positives werepicked according to the ground truth. Then, those false positives weresorted by the confidence scores in descending order. The top 20 falsepositives were chosen as illustrated in FIG. 9 of the '216 ProvisionalApplication. Because their confidence scores were high, they are objectsmost likely to cause the model to make mistakes. It turned out that mostof the false positives were actually human faces caused by mislabeling,which is a problem of the dataset itself. For other false positives, theerrors made by the model were rather reasonable. They all had thepattern of a human face as well as the shape of a contextual human body.

IV.2. Experiments on FDDB Face Database

To show that the CMS-RCNN methodology of the present disclosuregeneralizes well to other database, the proposed CMS-RCNN was alsobenchmarked on the FDDB database. The FDDB databases is a standarddatabase for testing and evaluating face detection algorithms. Itcontains annotations for 5,171 faces in a set of 2,845 images taken fromthe Faces in the Wild dataset. Most of the images in the FDDB databasecontain fewer than 3 faces that are clear or slightly occluded. Thefaces generally have large sizes and high resolutions compared to WiderFace. The same model trained on Wider Face training set presented inSection IV.1 was used to perform the evaluation on the FDDB database.

The evaluation was performed based on the discrete criterion followingthe same rules in PASCAL VOC Challenge, i.e., if the ratio of theintersection of a detected region with an annotated face region wasgreater than 0.5, it was considered as a true positive detection. Theevaluation proceeded following the FDDB evaluation protocol and wascompared against the published methods provided in the protocol, namely,HyperFace, DP2MFD, CCF, Faceness, NPDFace, MultiresHPM, DDFD,CascadeCNN, ACF-multiscale, Pico, Head Hunter, Joint Cascade, BoostedExemplar, and PEP-Adapt. The present CMS-RCNN approach outperformed mostof the published face detection methods and achieved a very high recallrate comparing against all other methods (as shown FIG. 7). This isconcrete evidence to demonstrate that CMS-RCNN robustly detectsunconstrained faces. FIG. 10 of the '216 Provisional Application showssome examples of the face detection results using the proposed CMS-RCNNon the FDDB dataset.

V. Example Computing System

It is to be noted that any one or more of the aspects and embodimentsdescribed herein may be conveniently implemented in and/or using one ormore machines (e.g., one or more computers, one or more communicationsnetwork devices, one or more electrical distribution network devices,any combination and/or network thereof, among other things) programmedaccording to the teachings of the present specification, as will beapparent to those of ordinary skill in the computer arts. Appropriatesoftware coding can readily be prepared by skilled programmers based onthe teachings of the present disclosure, as will be apparent to those ofordinary skill in the software art. Aspects and implementationsdiscussed above employing software and/or software modules may alsoinclude appropriate hardware for assisting in the implementation of themachine executable instructions of the software and/or software module.

Such software may be a computer program product that employs amachine-readable storage medium. A machine-readable storage medium maybe any medium that is capable of storing and/or encoding a sequence ofinstructions for execution by a machine (e.g., a computing device) andthat causes the machine to perform any one of the methodologies and/orembodiments described herein. Examples of a machine-readable storagemedium include, but are not limited to, a magnetic disk, an optical disc(e.g., CD, CD-R, DVD, DVD-R, etc.), a magneto-optical disk, a read-onlymemory “ROM” device, a random access memory “RAM” device, a magneticcard, an optical card, a solid-state memory device, an EPROM, an EEPROM,and any combinations thereof. A machine-readable medium, as used herein,is intended to include a single medium as well as a collection ofphysically separate media, such as, for example, a collection of compactdiscs or one or more hard disk drives in combination with a computermemory. As used herein, a machine-readable storage medium does notinclude transitory forms of signal transmission.

Such software may also include information (e.g., data) carried as adata signal on a data carrier, such as a carrier wave. For example,machine-executable information may be included as a data-carrying signalembodied in a data carrier in which the signal encodes a sequence ofinstruction, or portion thereof, for execution by a machine (e.g., acomputing device) and any related information (e.g., data structures anddata) that causes the machine to perform any one of the methodologiesand/or embodiments described herein.

Examples of a computing device include, but are not limited to, a laptopcomputer, a computer workstation, a terminal computer, a servercomputer, a handheld device (e.g., a tablet computer, a smartphone,etc.), a web appliance, a network router, a network switch, a networkbridge, any machine capable of executing a sequence of instructions thatspecify an action to be taken by that machine, and any combinationsthereof. In one example, a computing device may include and/or beincluded in a kiosk.

FIG. 8 shows a diagrammatic representation of one embodiment of acomputing device in the exemplary form of a computer system 800 withinwhich a set of instructions for performing any one or more of theaspects and/or methodologies of the present disclosure may be executed.It is also contemplated that multiple computing devices may be utilizedto implement a specially configured set of instructions for causing oneor more of the devices to contain and/or perform any one or more of theaspects and/or methodologies of the present disclosure. Computer system800 includes a processor 804 and a memory 808 that communicate with eachother, and with other components, via a bus 812. Bus 812 may include anyof several types of bus structures including, but not limited to, amemory bus, a memory controller, a peripheral bus, a local bus, and anycombinations thereof, using any of a variety of bus architectures.

Memory 808 may include various components (e.g., machine-readable media)including, but not limited to, a random access memory component, a readonly component, and any combinations thereof. In one example, a basicinput/output system 816 (BIOS), including basic routines that help totransfer information between elements within computer system 800, suchas during start-up, may be stored in memory 808. Memory 808 may alsoinclude (e.g., stored on one or more machine-readable media)instructions (e.g., software) 820 embodying any one or more of theaspects and/or methodologies of the present disclosure. In anotherexample, memory 808 may further include any number of program modulesincluding, but not limited to, an operating system, one or moreapplication programs, other program modules, program data, and anycombinations thereof.

Computer system 800 may also include a storage device 824. Examples of astorage device (e.g., storage device 824) include, but are not limitedto, a hard disk drive, a magnetic disk drive, an optical disc drive incombination with an optical medium, a solid-state memory device, and anycombinations thereof. Storage device 824 may be connected to bus 812 byan appropriate interface (not shown). Example interfaces include, butare not limited to, SCSI, advanced technology attachment (ATA), serialATA, universal serial bus (USB), IEEE 1394 (FIREWIRE), and anycombinations thereof. In one example, storage device 824 (or one or morecomponents thereof) may be removably interfaced with computer system 800(e.g., via an external port connector (not shown)). Particularly,storage device 824 and an associated machine-readable medium 828 mayprovide nonvolatile and/or volatile storage of machine-readableinstructions, data structures, program modules, and/or other data forcomputer system 800. In one example, software 820 may reside, completelyor partially, within machine-readable medium 828. In another example,software 820 may reside, completely or partially, within processor 804.

Computer system 800 may also include an input device 832. In oneexample, a user of computer system 800 may enter commands and/or otherinformation into computer system 800 via input device 832. Examples ofan input device 832 include, but are not limited to, an alpha-numericinput device (e.g., a keyboard), a pointing device, a joystick, agamepad, an audio input device (e.g., a microphone, a voice responsesystem, etc.), a cursor control device (e.g., a mouse), a touchpad, anoptical scanner, a video capture device (e.g., a still camera, a videocamera), a touchscreen, and any combinations thereof. Input device 832may be interfaced to bus 812 via any of a variety of interfaces (notshown) including, but not limited to, a serial interface, a parallelinterface, a game port, a USB interface, a FIREWIRE interface, a directinterface to bus 812, and any combinations thereof. Input device 832 mayinclude a touch screen interface that may be a part of or separate fromdisplay 836, discussed further below. Input device 832 may be utilizedas a user selection device for selecting one or more graphicalrepresentations in a graphical interface as described above.

A user may also input commands and/or other information to computersystem 800 via storage device 824 (e.g., a removable disk drive, a flashdrive, etc.) and/or network interface device 840. A network interfacedevice, such as network interface device 840, may be utilized forconnecting computer system 800 to one or more of a variety of networks,such as network 844, and one or more remote devices 848 connectedthereto. Examples of a network interface device include, but are notlimited to, a network interface card (e.g., a mobile network interfacecard, a LAN card), a modem, and any combination thereof. Examples of anetwork include, but are not limited to, a wide area network (e.g., theInternet, an enterprise network), a local area network (e.g., a networkassociated with an office, a building, a campus or other relativelysmall geographic space), a telephone network, a data network associatedwith a telephone/voice provider (e.g., a mobile communications providerdata and/or voice network), a direct connection between two computingdevices, and any combinations thereof. A network, such as network 844,may employ a wired and/or a wireless mode of communication. In general,any network topology may be used. Information (e.g., data, software 820,etc.) may be communicated to and/or from computer system 800 via networkinterface device 840.

Computer system 800 may further include a video display adapter 852 forcommunicating a displayable image to a display device, such as displaydevice 836. Examples of a display device include, but are not limitedto, a liquid crystal display (LCD), a cathode ray tube (CRT), a plasmadisplay, a light emitting diode (LED) display, and any combinationsthereof. Display adapter 852 and display device 836 may be utilized incombination with processor 804 to provide graphical representations ofaspects of the present disclosure. In addition to a display device,computer system 800 may include one or more other peripheral outputdevices including, but not limited to, an audio speaker, a printer, andany combinations thereof. Such peripheral output devices may beconnected to bus 812 via a peripheral interface 856. Examples of aperipheral interface include, but are not limited to, a serial port, aUSB connection, a FIREWIRE connection, a parallel connection, and anycombinations thereof.

The foregoing has been a detailed description of illustrativeembodiments of the invention. It is noted that in the presentspecification and claims appended hereto, conjunctive language such asis used in the phrases “at least one of X, Y and Z” and “one or more ofX, Y, and Z,” unless specifically stated or indicated otherwise, shallbe taken to mean that each item in the conjunctive list can be presentin any number exclusive of every other item in the list or in any numberin combination with any or all other item(s) in the conjunctive list,each of which may also be present in any number. Applying this generalrule, the conjunctive phrases in the foregoing examples in which theconjunctive list consists of X, Y, and Z shall each encompass: one ormore of X; one or more of Y; one or more of Z; one or more of X and oneor more of Y; one or more of Y and one or more of Z; one or more of Xand one or more of Z; and one or more of X, one or more of Y and one ormore of Z.

Various modifications and additions can be made without departing fromthe spirit and scope of this invention. Features of each of the variousembodiments described above may be combined with features of otherdescribed embodiments as appropriate in order to provide a multiplicityof feature combinations in associated new embodiments. Furthermore,while the foregoing describes a number of separate embodiments, what hasbeen described herein is merely illustrative of the application of theprinciples of the present invention. Additionally, although particularmethods herein may be illustrated and/or described as being performed ina specific order, the ordering is highly variable within ordinary skillto achieve aspects of the present disclosure. Accordingly, thisdescription is meant to be taken only by way of example, and not tootherwise limit the scope of this invention.

Exemplary embodiments have been disclosed above and illustrated in theaccompanying drawings. It will be understood by those skilled in the artthat various changes, omissions and additions may be made to that whichis specifically disclosed herein without departing from the spirit andscope of the present invention.

What is claimed is:
 1. A method of processing an image to detect thepresence of one or more objects of a desired classification in theimage, the method being performed in an object-detection system andcomprising: receiving the image and storing the image in computermemory; sequentially convolving the image in a series of at least twoconvolution layers to create a corresponding series of feature maps ofdiffering scales; pooling at least one of the feature maps to create acorresponding at least one pooled feature map; normalizing, relative toone another, the at least one pooled feature map and each of the featuremaps not pooled to create a series of normalized feature maps;concatenating the series of normalized feature maps together with oneanother to create a concatenated feature map; dimensionally reducing theconcatenated feature map to create a dimensionally reduced feature map;processing the dimensionally reduced feature map in a first set of fullyconnected layers to create a proposal comprising a bounding boxcorresponding to a suspected object of the desired classification in theimage and an objectness score for the suspected object, wherein thefirst set of fully connected layers has been trained on the desiredclassification; if the objectness score exceeds a predeterminedthreshold, then projecting the bounding box back to each of the at leasttwo feature maps to identify a region of interest in each of the atleast two feature maps; identify a context region for each region ofinterest; pooling each of the regions of interest to create acorresponding pooled region of interest; pooling each of the contextregions to create a corresponding pooled context region; normalizing,relative to one another, the pooled regions of interest to create a setof normalized regions of interest; normalizing, relative to one another,the pooled context regions to create a set of normalized contextregions; concatenating the normalized regions of interest with oneanother to create a concatenated region of interest; concatenating thenormalized context regions with one another to create a concatenatedcontext region; dimensionally reducing the concatenated region ofinterest to create a dimensionally reduced region of interest;dimensionally reducing the concatenated context region to create adimensionally reduced context region; processing the dimensionallyreduced region of interest and the dimensionally reduced context regionin a second set of fully connected layers to generate a determinedclassification for the region of interest, wherein the second set offully connected layers is trained on the desired classification; and ifthe determined classification corresponds to the desired classification,then annotating the image with an identification of the bounding box andstoring the image and the identification in the computer memory.
 2. Themethod according to claim 1, wherein the normalizing of the at least onepooled feature map and each of the feature maps not pooled is performedusing an L2 normalization.
 3. The method according to claim 2, whereinthe normalization is performed within each pixel and each of the atleast two feature maps is treated independently as follows:$\hat{x} = \frac{x}{{x}_{2}}$${x}_{2} = \left( {\sum\limits_{i = 1}^{d}\; {x_{i}}} \right)^{\frac{1}{2}}$wherein x and {circumflex over (x)} stand for a corresponding originalpixel vector and a corresponding normalized pixel vector, respectively,and d stands for a number of channels in each feature map tensor.
 4. Themethod according to claim 3, further comprising training the objectdetection system, wherein during the training, scaling factors γ_(i) areupdated to readjust the scale of the normalized features according to:y _(i)=γ_(i) {circumflex over (x)} _(i) wherein γ_(i) stands for there-scaled feature value.
 5. The method according to claim 1, wherein theprocessing of the convolved region of interest to generate a determinedclassification includes using a softmax function.
 6. The methodaccording to claim 1, wherein the desired classification is a humanface.
 7. The method according to claim 6, wherein each context region islocated based on likelihood of containing at least a portion of a humanbody.
 8. The method according to claim 7, wherein the human body isassumed to have a fixed spatial relation the human face.
 9. The methodaccording to claim 8, wherein the fixed spatial relation has the humanbody vertical.
 10. The method according to claim 9, wherein the fixedspacial relation is represented by a set of parameters as follows:t _(x)=(x _(b) −x _(f))/w _(f)t _(y)=(y _(b) −y _(f))/h _(f)t _(w)=log(w _(b) /w _(f))t _(h)=log(h _(b) /h _(f)) wherein x(*), y(*), w(*), and h(*) denote thetwo coordinates of the box center, width, and height respectively. And band f stand for the human body and the human face, respectively. t_(x),t_(y), t_(w), and t_(h) are the parameters.
 11. The method according toclaim 1, wherein the annotating of the image to identify the boundingbox includes adding a visual depiction of the bounding box to the image.12. A computer-readable storage medium containing computer-executableinstructions for performing a method of processing an image to detectthe presence of one or more objects of a desired classification in theimage, the method for being performed in an object-detection systemexecuting the computer-executable instructions and comprising: receivingthe image and storing the image in computer memory; sequentiallyconvolving the image in a series of at least two convolution layers tocreate a corresponding series of feature maps of differing scales;pooling at least one of the feature maps to create a corresponding atleast one pooled feature map; normalizing, relative to one another, theat least one pooled feature map and each of the feature maps not pooledto create a series of normalized feature maps; concatenating the seriesof normalized feature maps together with one another to create aconcatenated feature map; dimensionally reducing the concatenatedfeature map to create a dimensionally reduced feature map; processingthe dimensionally reduced feature map in a first set of fully connectedlayers to create a proposal comprising a bounding box corresponding to asuspected object of the desired classification in the image and anobjectness score for the suspected object, wherein the first set offully connected layers has been trained on the desired classification;if the objectness score exceeds a predetermined threshold, thenprojecting the bounding box back to each of the at least two featuremaps to identify a region of interest in each of the at least twofeature maps; identify a context region for each region of interest;pooling each of the regions of interest to create a corresponding pooledregion of interest; pooling each of the context regions to create acorresponding pooled context region; normalizing, relative to oneanother, the pooled regions of interest to create a set of normalizedregions of interest; normalizing, relative to one another, the pooledcontext regions to create a set of normalized context regions;concatenating the normalized regions of interest with one another tocreate a concatenated region of interest; concatenating the normalizedcontext regions with one another to create a concatenated contextregion; dimensionally reducing the concatenated region of interest tocreate a dimensionally reduced region of interest; dimensionallyreducing the concatenated context region to create a dimensionallyreduced context region; processing the dimensionally reduced region ofinterest and the dimensionally reduced context region in a second set offully connected layers to generate a determined classification for theregion of interest, wherein the second set of fully connected layers istrained on the desired classification; and if the determinedclassification corresponds to the desired classification, thenannotating the image with an identification of the bounding box andstoring the image and the identification in the computer memory.
 13. Thecomputer-readable storage medium according to claim 12, wherein thenormalizing of the at least one pooled feature map and each of thefeature maps not pooled is performed using an L2 normalization.
 14. Thecomputer-readable storage medium according to claim 13, wherein thenormalization is performed within each pixel and each of the at leasttwo feature maps is treated independently as follows:$\hat{x} = \frac{x}{{x}_{2}}$${x}_{2} = \left( {\sum\limits_{i = 1}^{d}\; {x_{i}}} \right)^{\frac{1}{2}}$wherein x and {circumflex over (x)} stand for a corresponding originalpixel vector and a corresponding normalized pixel vector, respectively,and d stands for a number of channels in each feature map tensor. 15.The computer-readable storage medium according to claim 14, furthercomprising training the object detection system, wherein during thetraining, scaling factors γ_(i) are updated to readjust the scale of thenormalized features according to:y _(i)=γ_(i) {circumflex over (x)} _(i) wherein γ_(i) stands for there-scaled feature value.
 16. The computer-readable storage mediumaccording to claim 12, wherein the processing of the convolved region ofinterest to generate a determined classification includes using asoftmax function.
 17. The computer-readable storage medium according toclaim 12, wherein the desired classification is a human face.
 18. Thecomputer-readable storage medium according to claim 17, wherein eachcontext region is located based on likelihood of containing at least aportion of a human body.
 19. The computer-readable storage mediumaccording to claim 18, wherein the human body is assumed to have a fixedspatial relation the human face.
 20. The computer-readable storagemedium according to claim 19, wherein the fixed spatial relation has thehuman body vertical.
 21. The computer-readable storage medium accordingto claim 20, wherein the fixed spacial relation is represented by a setof parameters as follows:t _(x)=(x _(b) −x _(f))/w _(f)t _(y)=(y _(b) −y _(f))/h _(f)t _(w)=log(w _(b) /w _(f))t _(h)=log(h _(b) /h _(f)) wherein x(*), y(*), w(*), and h(*) denote thetwo coordinates of the box center, width, and height respectively. And band f stand for the human body and the human face, respectively. t_(x),t_(y), t_(w), and t_(h) are the parameters.
 22. The computer-readablestorage medium according to claim 12, wherein the annotating of theimage to identify the bounding box includes adding a visual depiction ofthe bounding box to the image.